package com.qiaofang.entity;

import com.qiaofang.common.model.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author qi.liu
 * @date: 2021/1/12 10:37
 */
@Data
@Entity
@Table(name = "tm_wxmsg_failure")
public class WxMsgFailure extends BaseDomain {

    @ApiModelProperty("主键")
    @Column(name = "id")
    private Long id;

    @ApiModelProperty("公司uuid")
    @Column(name = "company_uuid")
    private String companyUuid;

    @ApiModelProperty("")
    @Column(name = "system_id")
    private String systemId;

    @ApiModelProperty("接收人openid")
    @Column(name = "receive_openid")
    private String receiveOpenid;

    @ApiModelProperty("人员ID")
    @Column(name = "partner_id")
    private Long partnerId;

    @ApiModelProperty("报备Id")
    @Column(name = "cus_preid")
    private Long cusPreId;

    @ApiModelProperty("接收内容")
    @Column(name = "receive_content")
    private String receiveContent;

    @ApiModelProperty("发送模板类型")
    @Column(name = "wxmodel_type")
    private String wxModelType;

    @ApiModelProperty("模板Uuid")
    @Column(name = "wxmodel_uuid")
    private String wxModelUuid;

    @ApiModelProperty("发送状态：0失败，1成功")
    @Column(name = "send_status")
    private String sendStatus;

    @ApiModelProperty("返回结果")
    @Column(name = "result")
    private String result;

    @ApiModelProperty("重发返回结果")
    @Column(name = "repeat_result")
    private String repeatResult;

    @ApiModelProperty("0: 未删除, 1已删除")
    @Column(name = "del_flag")
    private String delFlag;

    @ApiModelProperty("创建时间")
    @Column(name = "create_time")
    private Date createTime;

}
